package polytech;

import java.util.LinkedList;
import java.util.Calendar;

public class Main {

	public static void main(String[] args) {

		Batiment bat=new Batiment("ouest",3);
		Reservation planning= new Reservation();
		
		Salle_Cours sc=new Salle_Cours(40, "201", 2);
		Salle_Cours sc2=new Salle_Cours(40, "202", 2);
		Salle_Cours sc3=new Salle_Cours(40, "203", 2);
		Salle_TD std=new Salle_TD(30, "101",1);
		Salle_Amphi samphi=new Salle_Amphi(150, "001", 1);
		bat.add_salle(sc);
		bat.add_salle(sc2);
		bat.add_salle(sc3);
		bat.add_salle(std);
		bat.add_salle(samphi);
		
		System.out.println(bat.toString());
		
		Salle s=bat.rechercher(1);
		System.out.println(s);
		
		Calendar c = new Calendar(2012,11,19);
		planning.reserver("Nancy", 1, c, 1, 50);

	}

}
